package org.jwd.core.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @author vizz
 * @since 2022/5/14 15:47
 */
@Data
@Accessors(chain = true)
@TableName("sys_user")
public class UserEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


    private String userCode;

    @TableField(condition = SqlCondition.LIKE, jdbcType = JdbcType.VARCHAR)
    private String nickname;

    private String password;

    private String avatar;

    private String email;

    private String city;

    private LocalDateTime lastLogin;


}
